package com.ryskoo.controller.basicdata;

import com.ryskoo.basicdata.area.province.domain.ProvincePO;
import com.ryskoo.basicdata.area.province.service.IProvinceService;
import com.ryskoo.framework.core.controller.BasicHandler;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 地区-省管理
 * @author qyc
 */
@Controller
@RequestMapping("/vendor/basicdata/area/province")
public class ProvinceController extends BasicHandler<ProvincePO> {

    private static final String TEMPLATE_PATH = "system/basicdata/area/province";

    private static final String MODULE_NAME = "Province";

    private IProvinceService provinceService;

    /**
     * 消费者注入
     *
     * @param provinceConsumer 消费者基类
     */
    @Autowired
    protected void setService(IProvinceService provinceService) {
        this.provinceService = provinceService;
        super.setService(provinceService);
    }

    public ProvinceController() {
        super(TEMPLATE_PATH, MODULE_NAME);
    }
}
